import service from '@/utils/http.js'
// 签到
// POST api/train.record/record
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const record = (params) => {
    return service({
      url: 'api/train.record/record',
      method: 'post',
      data: params
    }) 
}

// 获取培训详情
// POST /api/Train/getShopTrain
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const getTrainDetail = (params) => {
    return service({
      url: 'api/train/getTrainDetail',
      method: 'post',
      data: params
    }) 
}
// 添加学员
// POST /api/Train/addStudent
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const addStudent = (params) => {
  return service({
    url: 'api/train/addStudent',
    method: 'post',
    data: params
  }) 
}


// 我的全部学员
// POST //api/train/selectStudent
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const selectStudent = (params) => {
  return service({
    url: 'api/train/selectStudent',
    method: 'post',
    data: params
  }) 
}


// 
// POST /api/Train/getCourtProduct 顶部提前预订天数和限购场数
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const getCourtProduct = (params) => {
  return service({
    url: 'api/court/getCourtProduct',
    method: 'post',
    data: params
  }) 
}

// POST /api/Train/getCourtPrice   选场初始状态
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
// export const getCourtPrice = (params) => {
//   return service({
//     url: 'api/court/getCourtPrice',
//     method: 'post',
//     data: params
//   }) 
// }
export const getCourtPrice = (params) => {
  return service({
    url: 'manage/court.Index/index',
    method: 'post',
    data: params
  }) 
}


// POST /api/Train/getCourtPrice   选场初始状态
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const getFieldNoList = (params) => {
  return service({
    url: 'api/court/getFieldNoList',
    method: 'post',
    data: params
  }) 
}

// POST /api/Train/getCourtPrice   选场初始状态
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const actionJobTest = (params) => {
  return service({
    url: 'api/JobCtrl/actionJobTest',
    method: 'post',
    data: params
  }) 
}

// POST /api/Train/getCourtPrice   选场初始状态
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const getMemberList = (params) => {
  return service({
    url: 'api/race/getMemberList',
    method: 'post',
    data: params
  }) 
}

// POST /api/Train/getCourtPrice   选场初始状态
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const miniClickCourt = (params) => {
  return service({
    url: 'api/court/miniClickCourt',
    method: 'post',
    data: params
  }) 
}

// /sass-test/public/index.php/api/court/clearCacheAndDataBase
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const clearCacheAndDataBase = (params) => {
  return service({
    url: 'api/court/clearCacheAndDataBase',
    method: 'post',
    data: params
  }) 
}



// /sass-test/public/index.php/api/court/clearCacheAndDataBase
// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/AoutUs/index  关于我们
export const AoutUs_s = (params) => {
  return service({
    url: 'api/AoutUs/index',
    method: 'post',
    data: params
  }) 
}

// /sass-test/public/index.php/api/AoutUs/aboutUs
// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/AoutUs/index  小程序配置信息
export const aboutUs = (params) => {
  return service({
    url: 'api/AoutUs/aboutUs',
    method: 'post',
    data: params
  }) 
}

// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/Suggestion/index  反馈意见
export const Suggestion = (params) => {
  return service({
    url: 'api/Suggestion/index',
    method: 'post',
    data: params
  }) 
}


// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/points/getProduct  积分商品
export const getProduct = (params) => {
  return service({
    url: 'api/points/getProduct',
    method: 'post',
    data: params
  }) 
}



// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/points/getCate 积分商品分类
export const getCate = (params) => {
  return service({
    url: 'api/points/getCate',
    method: 'post',
    data: params
  }) 
}


// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/points/getCate 积分商品分类
export const conf = (params) => {
  return service({
    url: 'api/train/conf',
    method: 'post',
    data: params
  }) 
}

// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/points/getCate 积分商品分类
export const hourList = (params) => {
  return service({
    url: 'api/train/hourList',
    method: 'post',
    data: params
  }) 
}

// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/train/getStudentField 获取培训班产品采集字段
export const getStudentField = (params) => {
  return service({
    url: 'api/train/getStudentField',
    method: 'post',
    data: params
  }) 
}
// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/train/classes 长训班根据教练获取班别列表
export const classes = (params) => {
  return service({
    url: 'api/train/classes',
    method: 'post',
    data: params
  }) 
}
// 接口ID：17781506
// 接口地址：/sass-test/public/api/train/areas 长训班根据教练获取校区列表
export const areas = (params) => {
  return service({
    url: 'api/train/areas',
    method: 'post',
    data: params
  }) 
}
//sku 长训班根据教练获取规格列表
export const sku = (params) => {
  return service({
    url: 'api/train/sku',
    method: 'post',
    data: params
  }) 
}

//sku 长训班根据教练获取规格列表
export const coach = (params) => {
  return service({
    url: 'api/train/coach',
    method: 'post',
    data: params
  }) 
}

//cityList 城市列表
export const cityList = (params) => {
  return service({
    url: 'api/race/cityList',
    method: 'post',
    data: params
  }) 
}

//area 校区详情
export const area = (params) => {
  return service({
    url: 'api/train/area',
    method: 'post',
    data: params
  }) 
}

//area 队员详情
export const getMoreEnrollMember = (params) => {
  return service({
    url: 'api/race/getMoreEnrollMember',
    method: 'post',
    data: params
  }) 
}

// 班级列表
export const cls_mange = (params) => {
  return service({
    url: 'api/train.cls_mange/index',
    method: 'post',
    data: params
  }) 
}
// 班级列表下拉选项
export const cls_options = (params) => {
  return service({
    url: 'api/conf/cls_options',
    method: 'post',
    data: params
  }) 
}
export const time_hour = (params) => {
    return service({
      url: 'api/train.cls_mange/time_hour',
      method: 'post',
      data: params
    }) 
}
export const students = (params) => {
    return service({
      url: 'api/train.cls_mange/students',
      method: 'post',
      data: params
    }) 
}
export const record_list = (params) => {
    return service({
      url: 'api/train.record/record_list',
      method: 'post',
      data: params
    }) 
}
export const trainpackage = (params) => {
    return service({
      url: 'api/train.personal/package',
      method: 'post',
      data: params
    }) 
}
export const traincourses = (params) => {
    return service({
      url: 'api/train.personal/courses',
      method: 'post',
      data: params
    }) 
}
export const package_save = (params) => {
    return service({
      url: 'api/train.personal/package_save',
      method: 'post',
      data: params
    }) 
}
export const traindel = (params) => {
    return service({
      url: 'api/train.personal/op_item',
      method: 'post',
      data: params
    }) 
}
export const trainstu = (params) => {
    return service({
      url: 'api/train.hour/stu',
      method: 'post',
      data: params
    }) 
}
export const trainsub = (params) => {
    return service({
      url: 'api/train.hour/sub',
      method: 'post',
      data: params
    }) 
}
export const revert_sub = (params) => {
    return service({
      url: 'api/train.record/revert_sub',
      method: 'post',
      data: params
    }) 
}
export const train_leave = (params) => {
    return service({
      url: 'api/train.hour/leave',
      method: 'post',
      data: params
    }) 
}
export const revert_leave = (params) => {
    return service({
      url: 'api/train.hour/revert_leave',
      method: 'post',
      data: params
    }) 
}
export const trainoptions = (params) => {
    return service({
      url: 'api/train.pc/options',
      method: 'post',
      data: params
    }) 
}
export const course_config = (params) => {
    return service({
      url: 'api/conf/course_config',
      method: 'post',
      data: params
    }) 
}
export const venue_areas = (params) => {
    return service({
      url: 'api/train.pc/venue_areas',
      method: 'post',
      data: params
    }) 
}
export const train_save = (params) => {
    return service({
      url: 'api/train.pc/save',
      method: 'post',
      data: params
    }) 
}
export const train_index = (params) => {
    return service({
      url: 'api/train.index/index',
      method: 'post',
      data: params
    }) 
}
export const cls_list = (params) => {
    return service({
      url: 'api/train.cls_mange/cls_list',
      method: 'post',
      data: params
    }) 
}
export const curriculum_pi = (params) => {
    return service({
      url: 'api/train.cls_mange/curriculum_pi',
      method: 'post',
      data: params
    }) 
}
export const cls_curriculum = (params) => {
    return service({
      url: 'api/train.cls_mange/curriculum',
      method: 'post',
      data: params
    }) 
}
export const confroom = (params) => {
    return service({
      url: 'api/conf/room',
      method: 'post',
      data: params
    }) 
}
export const confcomplete = (params) => {
    return service({
      url: 'api/train.hour/complete',
      method: 'post',
      data: params
    }) 
}
export const stu_list = (params) => {
    return service({
      url: 'api/train.student/stu_list',
      method: 'post',
      data: params
    }) 
}
export const cls_mangestu = (params) => {
    return service({
      url: 'api/train.cls_mange/stu',
      method: 'post',
      data: params
    }) 
}
export const trainchosens = (params) => {
    return service({
      url: 'api/train.index/chosens',
      method: 'post',
      data: params
    }) 
}
export const stock_sku = (params) => {
    return service({
      url: 'api/train.pc/stock_sku',
      method: 'post',
      data: params
    }) 
}
export const stock_save = (params) => {
    return service({
      url: 'api/train.pc/stock_save',
      method: 'post',
      data: params
    }) 
}
export const cls_config = (params) => {
    return service({
      url: 'api/conf/cls_config',
      method: 'post',
      data: params
    }) 
}
export const train_options = (params) => {
    return service({
      url: 'api/train.index/train_options',
      method: 'post',
      data: params
    }) 
}
export const cls_mangesave = (params) => {
    return service({
      url: 'api/train.cls_mange/save',
      method: 'post',
      data: params
    }) 
}
export const cls_mangesave_pi = (params) => {
    return service({
      url: 'api/train.cls_mange/save_pi',
      method: 'post',
      data: params
    }) 
}
export const cls_mangeop = (params) => {
    return service({
      url: 'api/train.cls_mange/op',
      method: 'post',
      data: params
    }) 
}
export const trainonline = (params) => {
    return service({
      url: 'api/train.index/online',
      method: 'post',
      data: params
    }) 
}
export const clsMangedetail = (params) => {
    return service({
      url: 'api/train.clsMange/detail',
      method: 'post',
      data: params
    }) 
}


